<template>
  <j-modal
    :title="title"
    :visible="visible"
    :maskClosable="false"
    :fullscreen="true"
    @close="handleCancel"
    cancelText="关闭"
  >
    <template slot="footer">
      <a-button key="back" style='padding-left:20px;padding-right:20px' @click='close()'>
        关闭
      </a-button>
    </template>
    <div style="margin: 0 auto" :class="{ isCheck: isCheck }">
      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns1"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange"
      >
      </a-table>
    </div>
  </j-modal>
</template>
<script>
import columns1 from './columns1'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'

export default {
  name: 'ydsjCheckModel',
  mixins: [JeecgListMixin],
  components: {},
  data() {
    return {
      disableSubmit: false,
      title: '疑点梳理详情',
      visible: false,
      isCheck: false,
      model: {
        pointId: null
      },
      columns1: columns1(this),
      queryParam: {},
      disableMixinCreated: true,
      url: {
        list: '/sjmx2/modelTemplatePointSortDetail/list',
        get: '/sys/sysDepart/queryDeptDetailByDeptId'
      }
    }
  },
  created() {
  },
  methods: {
    check(record) {
      this.dataSource = []
      this.model = Object.assign({}, record)
      this.queryParam.pointId = this.model.id
      this.visible = true
      this.loadData(1)
    },

    close() {
      this.visible = false
    },
    handleCancel() {
      this.close()
    }
  }
}
</script>

<style lang="less" scoped>
@import '../../css/checkAndEdit.less';
</style>
